package com.loong.system.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SystemFeedbackTypeParam {

    /**
     * 主键
     */
    @NotNull (message = "更新时id不能为空", groups = {CommonUpdate.class})
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "新增时名称不能为空",groups = {CommonInsert.class})
    private String name;

    /**
     * 用户类型
     */
    @NotNull(message = "新增时用户类型不能为空",groups = {CommonInsert.class})
    private Integer userType;

    /**
     * 标签
     */
    private String tag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date lastUpdateTime;

}